package cn.kgm.genericity;

import cn.kgm.genericity.interfaces.Generator;

/**
 * Create by kappi on
 * 2021/12/23/023 16:17
 */
public class GenericityMethod<T> {

    public static void main(String[] args) throws InstantiationException, IllegalAccessException {
        genericMethod();
    }

    static public void  genericMethod() throws InstantiationException,IllegalAccessException{
        return;
    }

    public <T> T genericMethod(Class<T> tClass,T t) throws InstantiationException,IllegalAccessException{
        T instacne = tClass.newInstance();
        return instacne;
    }

    public <T,K> K showKeyName(Generator<? super Thread> containern,K k,Class<K> kClass) throws InstantiationException, IllegalAccessException {
        return kClass.newInstance();
    }

}
